package com.yaofeng.mybatis.modules.sys.mapper;

import com.yaofeng.mybatis.modules.sys.entity.Dept;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yaofeng.mybatis.modules.sys.vo.SelectTreeVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 部门表 Mapper 接口
 * </p>
 *
 * @author yaofeng
 * @since 2019-11-05
 */
public interface DeptMapper extends BaseMapper<Dept> {

    List<SelectTreeVo> findAll(Map<String, Object> params);

    int checkUniqueDeptName(@Param("deptId") Long deptId,@Param("deptName") String deptName);

    void updatePatrentDeptStatus(@Param("ancestors") String ancestors);
}
